package com.ws.server.domain;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class SendMessage {
    private String dateTimeNow;
    private String message;

    public SendMessage(String message){
        dateTimeNow = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss").format(LocalDateTime.now()).toString();
        this.message = message;
    }

    public String getDateTimeNow() {
        return dateTimeNow;
    }

    public void setDateTimeNow(String dateTimeNow) {
        this.dateTimeNow = dateTimeNow;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
